package main

import (
	"fmt"
	"time"
)

func main() {
	new := time.Now()
	fmt.Println(new)
	fmt.Println(new.Unix())
	fmt.Println(new.UnixNano())
	fmt.Println(time.Unix(new.Unix(), 0))

	// aa := time.Tick(time.Second)

	// for t := range aa {
	// 	fmt.Println(t.Format("2006-01-02 03:04:05"))
	// }

	// dd, _ := time.Parse("2006-01-02 03:04:05", "2022-01-03 03:04:05")
	dd, _ := time.Parse("2006-01-02 03:04:05", "1666670424407555900")

	fmt.Println(dd)
}
